<?php
namespace app\admin\validate;
use think\Validate;
class Users extends Validate{
	protected $rule = [
          'username' => 'unique:users',
	];
	protected $message = [
           'username.unique' => '存在该用户名,请重新输入', 
	];
}